package com.itheima.conllection;

import java.util.ArrayList;

public class ConllectionDemo02 {
    public static void main(String[] args) {
        ArrayList<String> list=new ArrayList<>();
        list.add("aa");
        list.add("bb");
        list.add("cc");
        System.out.println(list);
        list.add(0,"dd");
        System.out.println(list);
        String remove = list.remove(0);
        System.out.println(list.set(1, "eee"));
        System.out.println(list);
        System.out.println(list.remove(2));
        System.out.println(list);
        System.out.println(list.get(0));
    }
}
